import { lazy } from 'react'
import { createBrowserRouter } from 'react-router-dom'
const Layout = lazy(() => import('../assets/layout/index'))
const Home = lazy(() => import('../assets/home/index'))
export const routers = ({
    layout: { path: '/layout', element: <Layout /> },

})

const router = createBrowserRouter([
    { path: '/layout/home', element: <Home />, children: { routers } }
])
export default router